package llvmir.value.structure;

import llvmir.type.Type;
import llvmir.value.Value;

public class Param extends Value {
    int index;
    String realName;

    public Param(String name, Type type) {
        super(name, type);
        this.realName = name;
    }

    public void setIndex(int index) {
        this.index = index;
        name = "%cyx" + index;
    }

    public String getRealName() {
        return realName;
    }

    @Override
    public String toString() {
        return this.getType() + " %cyx" + this.index;
    }
}
